package com.example.seckillconsumer.hystrix;

import com.example.seckillconsumer.feign.SecKillFeign;
import org.springframework.stereotype.Component;

/**
 * @author likaiping
 * @createTime 2024/7/6 20:48
 */
public class SecKillFeignHystrix implements SecKillFeign {
    @Override
    public Integer getGoodsStock(Integer gid) {
        System.out.println("进入SecKillFeignHystrix的getGoodsStock方法，说明开启熔断");
        return null;
    }

    @Override
    public boolean setGoodsStock(Integer gid, Integer stock) {
        return false;
    }

    @Override
    public boolean editGoodsStock(Integer gid, Integer stock) {
        return false;
    }
}
